<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): CPTLayer Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_layer.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Instance Methods</a>  </div>
  <div class="headertitle">
<div class="title">CPTLayer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTLayer" --><!-- doxytag: inherits="CALayer,CPTResponder-p" -->
<p>Base class for all Core Animation layers in Core Plot.  
 <a href="interface_c_p_t_layer.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTLayer:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_layer__inherit__graph.png" border="0" usemap="#_c_p_t_layer_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_layer_inherit__map" id="_c_p_t_layer_inherit__map">
<area shape="rect" id="node18" href="interface_c_p_t_annotation_host_layer.html" title="A container layer for annotations." alt="" coords="817,253,999,283"/><area shape="rect" id="node46" href="interface_c_p_t_axis.html" title="An abstract axis class." alt="" coords="871,334,945,365"/><area shape="rect" id="node50" href="interface_c_p_t_axis_label_group.html" title="A container layer for the axis labels." alt="" coords="834,389,982,419"/><area shape="rect" id="node52" href="interface_c_p_t_axis_set.html" title="A container layer for the set of axes for a graph." alt="" coords="861,443,955,474"/><area shape="rect" id="node56" href="interface_c_p_t_grid_line_group.html" title="A group of grid line layers." alt="" coords="838,498,978,529"/><area shape="rect" id="node58" href="interface_c_p_t_grid_lines.html" title="An abstract class that draws grid lines for an axis." alt="" coords="854,553,962,583"/><area shape="rect" id="node60" href="interface_c_p_t_plot_group.html" title="Defines the coordinate system of a plot." alt="" coords="853,607,963,638"/><area shape="rect" id="node62" href="interface_c_p_t_text_layer.html" title="A Core Animation layer that displays a single line of text drawn in a uniform style." alt="" coords="853,662,963,693"/><area shape="rect" id="node2" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html" title="CALayer" alt="" coords="532,437,606,467"/><area shape="rect" id="node4" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="332,369,412,399"/><area shape="rect" id="node6" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="65,477,183,507"/><area shape="rect" id="node14" href="protocol_c_p_t_responder-p.html" title="The basis of all event processing in Core Plot." alt="" coords="501,505,638,535"/><area shape="rect" id="node8" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html" title="\&lt;NSKeyValueBindingCreation&#45;p\&gt;" alt="" coords="5,369,243,399"/><area shape="rect" id="node10" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="311,423,433,454"/><area shape="rect" id="node12" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CAMediaTiming_protocol/Introduction/Introduction.html" title="\&lt;CAMediaTiming&#45;p\&gt;" alt="" coords="292,478,452,509"/><area shape="rect" id="node20" href="interface_c_p_t_bordered_layer.html" title="A layer with rounded corners." alt="" coords="1048,89,1187,119"/><area shape="rect" id="node32" href="interface_c_p_t_plot.html" title="An abstract plot class." alt="" coords="1082,253,1153,283"/><area shape="rect" id="node44" href="interface_c_p_t_plot_area.html" title="A layer representing the actual plotting area of a graph." alt="" coords="1067,307,1167,338"/><area shape="rect" id="node22" href="interface_c_p_t_graph.html" title="An abstract graph class." alt="" coords="1272,6,1357,37"/><area shape="rect" id="node28" href="interface_c_p_t_legend.html" title="A graph legend." alt="" coords="1268,61,1361,91"/><area shape="rect" id="node30" href="interface_c_p_t_plot_area_frame.html" title="A layer drawn on top of the graph layer and behind all plot elements." alt="" coords="1245,115,1385,146"/><area shape="rect" id="node24" href="interface_c_p_t_x_y_graph.html" title="A graph using a cartesian (X&#45;Y) plot space." alt="" coords="1444,6,1546,37"/><area shape="rect" id="node26" href="interface_c_p_t_derived_x_y_graph.html" title="An empty XY graph class used for testing themes." alt="" coords="1595,6,1746,37"/><area shape="rect" id="node34" href="interface_c_p_t_bar_plot.html" title="A two&#45;dimensional bar plot." alt="" coords="1269,170,1360,201"/><area shape="rect" id="node36" href="interface_c_p_t_pie_chart.html" title="A pie chart." alt="" coords="1265,225,1365,255"/><area shape="rect" id="node38" href="interface_c_p_t_range_plot.html" title="A plot class representing a range of values in one coordinate, such as typically used to show errors..." alt="" coords="1259,279,1370,310"/><area shape="rect" id="node40" href="interface_c_p_t_scatter_plot.html" title="A two&#45;dimensional scatter plot." alt="" coords="1257,334,1372,365"/><area shape="rect" id="node42" href="interface_c_p_t_trading_range_plot.html" title="A trading range financial plot." alt="" coords="1234,389,1395,419"/><area shape="rect" id="node48" href="interface_c_p_t_x_y_axis.html" title="A 2&#45;dimensional cartesian (X&#45;Y) axis class." alt="" coords="1072,362,1163,393"/><area shape="rect" id="node54" href="interface_c_p_t_x_y_axis_set.html" title="A set of cartesian (X&#45;Y) axes." alt="" coords="1062,443,1173,474"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTLayer:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_layer__coll__graph.png" border="0" usemap="#_c_p_t_layer_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_layer_coll__map" id="_c_p_t_layer_coll__map">
<area shape="rect" id="node2" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html" title="CALayer" alt="" coords="251,166,324,197"/><area shape="rect" id="node4" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="84,86,164,117"/><area shape="rect" id="node6" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="369,6,487,37"/><area shape="rect" id="node14" href="protocol_c_p_t_responder-p.html" title="The basis of all event processing in Core Plot." alt="" coords="425,166,561,197"/><area shape="rect" id="node8" href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html" title="\&lt;NSKeyValueBindingCreation&#45;p\&gt;" alt="" coords="5,6,243,37"/><area shape="rect" id="node10" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="188,86,309,117"/><area shape="rect" id="node12" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CAMediaTiming_protocol/Introduction/Introduction.html" title="\&lt;CAMediaTiming&#45;p\&gt;" alt="" coords="334,86,495,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_layer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb212c9b1cc7cd17a285e713920988d7"></a><!-- doxytag: member="CPTLayer::logLayers" ref="aeb212c9b1cc7cd17a285e713920988d7" args="()" -->
(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#aeb212c9b1cc7cd17a285e713920988d7">logLayers</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Logs this layer and all of its sublayers. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Initialization</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#a42e21f40d25b81ffafdc9940d894876d">initWithFrame:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a newly allocated <a class="el" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a> object with the provided frame rectangle.  <a href="#a42e21f40d25b81ffafdc9940d894876d"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Images</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="_c_p_t_platform_specific_defines_8h.html#adc5eaa6a01618331a9971270760548c5">CPTNativeImage</a> *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#a8090476a4b0d5ce1ef54803af81e81d1">imageOfLayer</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets an image of the layer contents.  <a href="#a8090476a4b0d5ce1ef54803af81e81d1"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Graph</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d4794c9b39b95e0339b40deb71981b8"></a><!-- doxytag: member="CPTLayer::graph" ref="a8d4794c9b39b95e0339b40deb71981b8" args="" -->
<a class="el" href="_c_p_t_definitions_8h.html#abd26af4304957387867e6e9e8cef1576">__cpt_weak</a> <a class="el" href="interface_c_p_t_graph.html">CPTGraph</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#a8d4794c9b39b95e0339b40deb71981b8">graph</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The graph for the layer. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Padding</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac962eb515958c49389f88f5c206a590c"></a><!-- doxytag: member="CPTLayer::paddingLeft" ref="ac962eb515958c49389f88f5c206a590c" args="" -->
CGFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#ac962eb515958c49389f88f5c206a590c">paddingLeft</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Amount to inset the left side of each sublayer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad1a81c5bfc9c5f7b97dc5d0f5f7be970"></a><!-- doxytag: member="CPTLayer::paddingTop" ref="ad1a81c5bfc9c5f7b97dc5d0f5f7be970" args="" -->
CGFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#ad1a81c5bfc9c5f7b97dc5d0f5f7be970">paddingTop</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Amount to inset the top of each sublayer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb94b6248a686698a7b592a270d4a3b3"></a><!-- doxytag: member="CPTLayer::paddingRight" ref="aeb94b6248a686698a7b592a270d4a3b3" args="" -->
CGFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#aeb94b6248a686698a7b592a270d4a3b3">paddingRight</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Amount to inset the right side of each sublayer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a119c53f983101e645de4584f2230383e"></a><!-- doxytag: member="CPTLayer::paddingBottom" ref="a119c53f983101e645de4584f2230383e" args="" -->
CGFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#a119c53f983101e645de4584f2230383e">paddingBottom</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Amount to inset the bottom of each sublayer. <br/></td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
Drawing</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad95ea54a7ebf06e98e6ae9dd99d9b86a"></a><!-- doxytag: member="CPTLayer::contentsScale" ref="ad95ea54a7ebf06e98e6ae9dd99d9b86a" args="" -->
CGFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#ad95ea54a7ebf06e98e6ae9dd99d9b86a">contentsScale</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The scale factor applied to the layer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4fefbcecda0705cb0f525540d0f9eb8"></a><!-- doxytag: member="CPTLayer::useFastRendering" ref="ad4fefbcecda0705cb0f525540d0f9eb8" args="" -->
<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#ad4fefbcecda0705cb0f525540d0f9eb8">useFastRendering</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If YES, subclasses should optimize their drawing for speed over precision. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d727080db2811b223c733116b82f6e3"></a><!-- doxytag: member="CPTLayer::shadow" ref="a1d727080db2811b223c733116b82f6e3" args="" -->
<a class="el" href="interface_c_p_t_shadow.html">CPTShadow</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#a1d727080db2811b223c733116b82f6e3">shadow</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The shadow drawn under the layer content. If nil (the default), no shadow is drawn. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#a9eefed89fc5f8d4c748ea81f82ef33f1">renderAsVectorInContext:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws layer content into the provided graphics context.  <a href="#a9eefed89fc5f8d4c748ea81f82ef33f1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#ab129f6842e4eeb5c282e873813ff3374">recursivelyRenderInContext:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws layer content and the content of all sublayers into the provided graphics context.  <a href="#ab129f6842e4eeb5c282e873813ff3374"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#aed3da8487b5da1420938d0493311de98">layoutAndRenderInContext:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the layer layout if needed and then draws layer content and the content of all sublayers into the provided graphics context.  <a href="#aed3da8487b5da1420938d0493311de98"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="elRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html">NSData</a> *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#a59a7f3e71976ccd5f2b45e9635a29fbc">dataForPDFRepresentationOfLayer</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws layer content and the content of all sublayers into a PDF document.  <a href="#a59a7f3e71976ccd5f2b45e9635a29fbc"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
Masking</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa09d6c69b5856b5c95d88d8008858481"></a><!-- doxytag: member="CPTLayer::masksToBorder" ref="aa09d6c69b5856b5c95d88d8008858481" args="" -->
<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#aa09d6c69b5856b5c95d88d8008858481">masksToBorder</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If YES, a sublayer mask is applied to clip sublayer content to the inside of the border. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01374b55dfe10bbe13159fe0b31ab894"></a><!-- doxytag: member="CPTLayer::outerBorderPath" ref="a01374b55dfe10bbe13159fe0b31ab894" args="" -->
<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#a01374b55dfe10bbe13159fe0b31ab894">outerBorderPath</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing path that encompasses the outer boundary of the layer border. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13d9e668da9cd969860f963e194e38ea"></a><!-- doxytag: member="CPTLayer::innerBorderPath" ref="a13d9e668da9cd969860f963e194e38ea" args="" -->
<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#a13d9e668da9cd969860f963e194e38ea">innerBorderPath</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing path that encompasses the inner boundary of the layer border. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#a00eb8c95b69aa830cead6cb9dd62d549">maskingPath</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing path that encompasses the layer content including any borders. Set to NULL when no masking is desired.  <a href="#a00eb8c95b69aa830cead6cb9dd62d549"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#acead64e0d841d758aa3f5d94b1e56825">sublayerMaskingPath</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A drawing path that encompasses the layer content excluding any borders. Set to NULL when no masking is desired.  <a href="#acead64e0d841d758aa3f5d94b1e56825"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#a4de967624f58f1b0c1d84d33b2645478">applySublayerMaskToContext:forSublayer:withOffset:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Recursively sets the clipping path of the given graphics context to the sublayer masking paths of its superlayers.  <a href="#a4de967624f58f1b0c1d84d33b2645478"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#ae0bd79dfbc1c223d5b1f33aa0893bd35">applyMaskToContext:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the clipping path of the given graphics context to mask the content.  <a href="#ae0bd79dfbc1c223d5b1f33aa0893bd35"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
Layout</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38dd48786a040cdb102fa481d2aff263"></a><!-- doxytag: member="CPTLayer::sublayersExcludedFromAutomaticLayout" ref="a38dd48786a040cdb102fa481d2aff263" args="" -->
<a class="elRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/Reference/Reference.html">NSSet</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_layer.html#a38dd48786a040cdb102fa481d2aff263">sublayersExcludedFromAutomaticLayout</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A set of sublayers that should be excluded from the automatic sublayer layout. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4f6b9618bb5b33f57f67c2841710aec3"></a><!-- doxytag: member="CPTLayer::pixelAlign" ref="a4f6b9618bb5b33f57f67c2841710aec3" args="()" -->
(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#a4f6b9618bb5b33f57f67c2841710aec3">pixelAlign</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Align the receiver's position with pixel boundaries. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_layer.html#abceadfd3aa964794f6ec708190ee817c">sublayerMarginLeft:top:right:bottom:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the margins that should be left between the bounds of the receiver and all sublayers.  <a href="#abceadfd3aa964794f6ec708190ee817c"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Base class for all Core Animation layers in Core Plot. </p>
<p>Unless useFastRendering == YES, all drawing is done in a way that preserves the drawing vectors. Sublayers are arranged automatically to fill the layer's bounds, minus any padding. Default animations for changes in position, bounds, and sublayers are turned off. The default layer is not opaque and does not mask to bounds. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="ae0bd79dfbc1c223d5b1f33aa0893bd35"></a><!-- doxytag: member="CPTLayer::applyMaskToContext:" ref="ae0bd79dfbc1c223d5b1f33aa0893bd35" args="(CGContextRef context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_layer.html#ae0bd79dfbc1c223d5b1f33aa0893bd35">applyMaskToContext:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)&#160;</td>
          <td class="paramname"><em>context</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the clipping path of the given graphics context to mask the content. </p>
<p>The clipping path is built by recursively climbing the layer tree and combining the sublayer masks from each super layer. The tree traversal stops when a layer is encountered that is not a <a class="el" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a>.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context to clip. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4de967624f58f1b0c1d84d33b2645478"></a><!-- doxytag: member="CPTLayer::applySublayerMaskToContext:forSublayer:withOffset:" ref="a4de967624f58f1b0c1d84d33b2645478" args="(CGContextRef context,[forSublayer] CPTLayer *sublayer,[withOffset] CGPoint offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) applySublayerMaskToContext: </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)&#160;</td>
          <td class="paramname"><em>context</em></td>
        </tr>
        <tr>
          <td class="paramkey">forSublayer:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_p_t_layer.html">CPTLayer</a> *)&#160;</td>
          <td class="paramname"><em>sublayer</em></td>
        </tr>
        <tr>
          <td class="paramkey">withOffset:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>)&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Recursively sets the clipping path of the given graphics context to the sublayer masking paths of its superlayers. </p>
<p>The clipping path is built by recursively climbing the layer tree and combining the sublayer masks from each super layer. The tree traversal stops when a layer is encountered that is not a <a class="el" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a>.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context to clip. </td></tr>
    <tr><td class="paramname">sublayer</td><td>The sublayer that called this method. </td></tr>
    <tr><td class="paramname">offset</td><td>The cumulative position offset between the receiver and the first layer in the recursive calling chain. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a59a7f3e71976ccd5f2b45e9635a29fbc"></a><!-- doxytag: member="CPTLayer::dataForPDFRepresentationOfLayer" ref="a59a7f3e71976ccd5f2b45e9635a29fbc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html">NSData</a> *) <a class="el" href="interface_c_p_t_layer.html#a59a7f3e71976ccd5f2b45e9635a29fbc">dataForPDFRepresentationOfLayer</a> </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws layer content and the content of all sublayers into a PDF document. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>PDF representation of the layer content. </dd></dl>

</div>
</div>
<a class="anchor" id="a8090476a4b0d5ce1ef54803af81e81d1"></a><!-- doxytag: member="CPTLayer::imageOfLayer" ref="a8090476a4b0d5ce1ef54803af81e81d1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="_c_p_t_platform_specific_defines_8h.html#adc5eaa6a01618331a9971270760548c5">CPTNativeImage</a> *) <a class="el" href="interface_c_p_t_layer.html#a8090476a4b0d5ce1ef54803af81e81d1">imageOfLayer</a> </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets an image of the layer contents. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A native image representation of the layer content. </dd></dl>

</div>
</div>
<a class="anchor" id="a42e21f40d25b81ffafdc9940d894876d"></a><!-- doxytag: member="CPTLayer::initWithFrame:" ref="a42e21f40d25b81ffafdc9940d894876d" args="(CGRect newFrame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">id</a>) <a class="el" href="interface_c_p_t_layer.html#a42e21f40d25b81ffafdc9940d894876d">initWithFrame:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a>)&#160;</td>
          <td class="paramname"><em>newFrame</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a newly allocated <a class="el" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a> object with the provided frame rectangle. </p>
<p>This is the designated initializer. The initialized layer will have the following properties that are different than a <a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html">CALayer</a>:</p>
<ul>
<li>needsDisplayOnBoundsChange = NO</li>
<li>opaque = NO</li>
<li>masksToBounds = NO</li>
<li>padding = 0 on all four sides</li>
<li>Default animations for changes in position, bounds, and sublayers are turned off.</li>
</ul>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newFrame</td><td>The frame rectangle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The initialized <a class="el" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="aed3da8487b5da1420938d0493311de98"></a><!-- doxytag: member="CPTLayer::layoutAndRenderInContext:" ref="aed3da8487b5da1420938d0493311de98" args="(CGContextRef context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_layer.html#aed3da8487b5da1420938d0493311de98">layoutAndRenderInContext:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)&#160;</td>
          <td class="paramname"><em>context</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Updates the layer layout if needed and then draws layer content and the content of all sublayers into the provided graphics context. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context to draw into. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab129f6842e4eeb5c282e873813ff3374"></a><!-- doxytag: member="CPTLayer::recursivelyRenderInContext:" ref="ab129f6842e4eeb5c282e873813ff3374" args="(CGContextRef context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_layer.html#ab129f6842e4eeb5c282e873813ff3374">recursivelyRenderInContext:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)&#160;</td>
          <td class="paramname"><em>context</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws layer content and the content of all sublayers into the provided graphics context. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context to draw into. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9eefed89fc5f8d4c748ea81f82ef33f1"></a><!-- doxytag: member="CPTLayer::renderAsVectorInContext:" ref="a9eefed89fc5f8d4c748ea81f82ef33f1" args="(CGContextRef context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_layer.html#a9eefed89fc5f8d4c748ea81f82ef33f1">renderAsVectorInContext:</a> </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)&#160;</td>
          <td class="paramname"><em>context</em></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws layer content into the provided graphics context. </p>
<p>This method replaces the drawInContext: method to ensure that layer content is always drawn as vectors and objects rather than as a cached bitmapped image representation. Subclasses should do all drawing here and must call super to set up the clipping path.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>The graphics context to draw into. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abceadfd3aa964794f6ec708190ee817c"></a><!-- doxytag: member="CPTLayer::sublayerMarginLeft:top:right:bottom:" ref="abceadfd3aa964794f6ec708190ee817c" args="(CGFloat *left,[top] CGFloat *top,[right] CGFloat *right,[bottom] CGFloat *bottom)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) sublayerMarginLeft: </td>
          <td></td>
          <td class="paramtype">(CGFloat *)&#160;</td>
          <td class="paramname"><em>left</em></td>
        </tr>
        <tr>
          <td class="paramkey">top:</td>
          <td></td>
          <td class="paramtype">(CGFloat *)&#160;</td>
          <td class="paramname"><em>top</em></td>
        </tr>
        <tr>
          <td class="paramkey">right:</td>
          <td></td>
          <td class="paramtype">(CGFloat *)&#160;</td>
          <td class="paramname"><em>right</em></td>
        </tr>
        <tr>
          <td class="paramkey">bottom:</td>
          <td></td>
          <td class="paramtype">(CGFloat *)&#160;</td>
          <td class="paramname"><em>bottom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the margins that should be left between the bounds of the receiver and all sublayers. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>The left margin. </td></tr>
    <tr><td class="paramname">top</td><td>The top margin. </td></tr>
    <tr><td class="paramname">right</td><td>The right margin. </td></tr>
    <tr><td class="paramname">bottom</td><td>The bottom margin. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a00eb8c95b69aa830cead6cb9dd62d549"></a><!-- doxytag: member="CPTLayer::maskingPath" ref="a00eb8c95b69aa830cead6cb9dd62d549" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a>) <a class="el" href="interface_c_p_t_layer.html#a00eb8c95b69aa830cead6cb9dd62d549">maskingPath</a><code> [read, assign]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A drawing path that encompasses the layer content including any borders. Set to NULL when no masking is desired. </p>
<p>This path defines the outline of the layer and is used to mask all drawing. Set to NULL when no masking is desired. The caller must NOT release the path returned by this property. </p>

</div>
</div>
<a class="anchor" id="acead64e0d841d758aa3f5d94b1e56825"></a><!-- doxytag: member="CPTLayer::sublayerMaskingPath" ref="acead64e0d841d758aa3f5d94b1e56825" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="elRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGPath/Reference/reference.html#//apple_ref/doc/c_ref/CGPathRef.html">CGPathRef</a>) <a class="el" href="interface_c_p_t_layer.html#acead64e0d841d758aa3f5d94b1e56825">sublayerMaskingPath</a><code> [read, assign]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A drawing path that encompasses the layer content excluding any borders. Set to NULL when no masking is desired. </p>
<p>This path defines the outline of the part of the layer where sublayers should draw and is used to mask all sublayer drawing. Set to NULL when no masking is desired. The caller must NOT release the path returned by this property. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_layer_8h_source.html">CPTLayer.h</a></li>
<li>Source/CPTLayer.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_layer.html">CPTLayer</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
